/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package solucion;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class PrestacionCriteria extends AbstractORMCriteria {
	public final IntegerExpression id_prestacion;
	public final StringExpression descripcion;
	
	public PrestacionCriteria(Criteria criteria) {
		super(criteria);
		id_prestacion = new IntegerExpression("id_prestacion", this);
		descripcion = new StringExpression("descripcion", this);
	}
	
	public PrestacionCriteria(PersistentSession session) {
		this(session.createCriteria(Prestacion.class));
	}
	
	public PrestacionCriteria() throws PersistentException {
		this(solucion.PrestacionesClinicasPersistentManager.instance().getSession());
	}
	
	public RegistroCriteria createRegistroCriteria() {
		return new RegistroCriteria(createCriteria("ORM_Registro"));
	}
	
	public Prestacion uniquePrestacion() {
		return (Prestacion) super.uniqueResult();
	}
	
	public Prestacion[] listPrestacion() {
		java.util.List list = super.list();
		return (Prestacion[]) list.toArray(new Prestacion[list.size()]);
	}
}

